home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / TinyGL / ami / content / ad709 / tinygl / src / specbuf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-08-15  |  644 b   |  22 lines

  1. #ifndef _tgl_specbuf_h_
  2. #define _tgl_specbuf_h_
  3.  
  4. /* Max # of specular light pow buffers */
  5. #define MAX_SPECULAR_BUFFERS 8
  6. /* # of entries in specular buffer */
  7. #define SPECULAR_BUFFER_SIZE 1024
  8. /* specular buffer granularity */
  9. #define SPECULAR_BUFFER_RESOLUTION 1024
  10.  
  11. typedef struct GLSpecBuf {
  12.   int shininess_i;
  13.   int last_used;
  14.   float buf[SPECULAR_BUFFER_SIZE+1];
  15.   struct GLSpecBuf *next;
  16. } GLSpecBuf;
  17.  
  18. GLSpecBuf *specbuf_get_buffer(GLContext *c, const int shininess_i, 
  19.                               const float shininess);
  20. void specbuf_cleanup(GLContext *c); /* free all memory used */
  21.  
  22. #endif /* _tgl_specbuf_h_ */